import time
import unittest
from selenium import webdriver
from data001.Page.Page1 import Page1
from data001.Page.Page2 import Page2
from data001.Page.Page3 import Page3
from data001.Page.Page4 import Page4


class MyTestCase(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Edge()
        self.driver.maximize_window()
    def tearDown(self):
        time.sleep(2)
        self.driver.quit()

    def test_a3mall_001(self):
        po1 = Page1(self.driver)
        po1.test_a3mall_login()
    def test_a3mall_002(self):
        po2 = Page2(self.driver)
        po2.test_a3mall_sousuo()
    def test_a3mall_003(self):
        po3 = Page3(self.driver)
        po3.test_a3mall_tuangou()
    def test_a3mall_004(self):
        po4 = Page4(self.driver)
        po4.test_mall_tuangou2()

if __name__ == '__main__':
    unittest.main()
